package com.qjl.shopping.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @Author liguanghui
 * @Date 2023/5/3
 */
@Data
@TableName("order_item")
public class OrderItem {
    @TableId(value = "oi_id", type = IdType.AUTO)
    private int id;
    @TableField("oi_order_id")
    private int orderId;
    @TableField("oi_item_id")
    private int itemId;
    @TableField("oi_item_num")
    private int num;

    @TableField(exist = false)
    private Item item;
    @TableField(exist = false)
    private Orders orders;
}
